﻿using System.Web.Mvc;
using EPiMVC.Templates.Web.PageTypes;
using EPiMVC.Templates.Web.ViewModels;

namespace EPiMVC.Templates.Web.Controllers
{
    public class LogoController : Controller
    {
        private StartPage startPage;

        public LogoController(StartPage startPage)
        {
            this.startPage = startPage;
        }

        public ViewResult Index()
        {
            LinkedImage logoSpecification = 
                new LinkedImage(startPage.LogotypeUrl, 
                    startPage.LogotypeAlternativeText, 
                    startPage.LinkURL);

            return View(logoSpecification);
        }

    }
}
